import React from 'react';
import { Routes, Route } from 'react-router-dom';
import Home from '../pages/Home/Home';
import About from '../pages/About/About';
import Profile from '../pages/Profile/Profile';
import TeamList from '../pages/TeamList';
import MatchList from '../pages/MatchList';
import PlayerList from '../pages/PlayerList';
import NotFound from '../pages/NotFound/NotFound';

const AppRouter = () => {
  return (
    <Routes>
      <Route path="/" element={<Home />} />
      <Route path="/about" element={<About />} />
      <Route path="/profile" element={<Profile />} />
      <Route path="/teams" element={<TeamList />} />
      <Route path="/matches" element={<MatchList />} />
      <Route path="/players" element={<PlayerList />} />
      <Route path="*" element={<NotFound />} />
    </Routes>
  );
};

export default AppRouter;
